<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询用户</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
function checkName(str){
	$.post('checkName?name='+str,function(data){
		$('#userErr').html(data);
	});
}
</script>
<style type="text/css">
	#yjc {
		width: 350px;
		height: 240px;
		margin:0px;
		padding: 30px 0;
	}	
	
	#xpz{
		margin-top: 80px;
	}
	body{
		background-color:#FFF5EE;
	}
</style>
</head>
<body>
<center>
<div id="xpz">
	<img alt="" src="beijing/logo.jpg" width="650px" height="180px">
</div>
<div id="yjc">
	<form action="Chaxun" method="post" name="myForm" onsubmit="return yanz()">
	<h1 style="color:#000000">查询用户</h1>
			<table>
				<tbody>
					<tr>
						<td>请输入查询信息：</td>
					</tr>
					<tr><td></td></tr>
					<tr>
						<td>
							<input type="text" name="name" placeholder="请输入正确的姓名" onchange="checkName(this.value);">
							<br/>
							<font color="red" id="userErr"></font>
						</td>	
					</tr>
					<tr></tr><tr></tr><tr></tr>
					<tr>
						<td>
							<input type="submit" value="提交">&nbsp;
							<input type="reset" value="重置">&nbsp;
							<input type="button" value="返回" onclick="window.location='glwelcome.jsp'">
						</td>
					</tr>
				</tbody>
			</table>
	</form>
</div>
</center>	
</body>
</html>